package vip.xiaonuo.megvii.captures.model.base.define;

import java.util.HashMap;
import java.util.Map;

public class ClothesDefine {

    private static Map<Integer,String> colorMap = new HashMap<>();

    static {
        colorMap.put(0,"未知颜色");
        colorMap.put(1,"黑色");
        colorMap.put(2,"白色");
        colorMap.put(3,"灰色");
        colorMap.put(4,"红色");
        colorMap.put(5,"橙色");
        colorMap.put(6,"黄色");
        colorMap.put(7,"绿色");
        colorMap.put(8,"深蓝色");
        colorMap.put(9,"浅蓝色");
        colorMap.put(10,"紫色");
        colorMap.put(11,"粉红色");
        colorMap.put(12,"棕色");
        colorMap.put(13,"彩色");
    }

    public static String getColor(int color){
        if (!colorMap.containsKey(color)){
            color = 0;
        }
        return colorMap.get(color);
    }

    // 32：上衣长短袖未知33：上衣长袖34：上衣短袖
    private static Map<Integer,String> sleeveMap = new HashMap<>();
    static {
        sleeveMap.put(32,"上衣");
        sleeveMap.put(33,"长袖");
        sleeveMap.put(34,"短袖");
    }

    public static String getSleeve(int type){
        if (!sleeveMap.containsKey(type)){
            type = 32;
        }
        return sleeveMap.get(type);
    }

    // 32：上衣长短袖未知33：上衣长袖34：上衣短袖
    private static Map<Integer,String> lenMap = new HashMap<>();
    static {
        lenMap.put(32,"裤子");
        lenMap.put(33,"长裤");
        lenMap.put(34,"短裤");
    }

    public static String getLen(int type){
        if (!lenMap.containsKey(type)){
            type = 32;
        }
        return lenMap.get(type);
    }
}
